#ifndef UI_H
#define UI_H

#include "../common/common.h"
#include "../renderer/renderer.h"

#include <SDL/SDL_ttf.h>

typedef struct {
	rect_t box;
	void (*call)(void);
} button_t;

typedef struct {
	surface_t * layer;
	Uint32 transparent;

	TTF_Font * font;
	surface_t * msg;
	color_t text_color;

} ui_globals_t;


void ui_show_msg(const char * msg);
button_t * ui_new_button(int x, int y, int w, int h, void (*call)(void));


void ui_menu(void);

void init_ui(void);
void show_ui(void);
void release_ui(void);

extern ui_globals_t ui;

#endif /* end of include guard: UI_H */
